package com.letoken.platform.repo.app.req.version;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 版本信息请求对象
 *
 * @author : hfanghao
 * @date : 2022-01-18 16:38
 **/
@Data
@ApiModel(value = "app版本信息请求对象", description = "app版本信息请求对象")
public class AppVersionInfoReq {

    @ApiModelProperty(name = "client", value = "客户端：1：Android，2：IOS", required = true, example = "1")
    @NotNull(message = "80101014")
    private Integer client;


    @ApiModelProperty(name = "currentVersion", value = "app当前所装版本", required = true, example = "12223")
    @NotBlank(message = "80101016")
    @Pattern(regexp = "^\\d+(.\\d+){1,2}", message = "80101017")
    private String currentVersion;

}
